package com.example.hotelrear.service.impl;

import com.example.hotelrear.entity.Collection;
import com.example.hotelrear.entity.Room;
import com.example.hotelrear.mapper.CollectionMapper;
import com.example.hotelrear.service.CollectionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author FengXiao
 * @since 2023-08-28
 */
@Service
public class CollectionServiceImpl extends ServiceImpl<CollectionMapper, Collection> implements CollectionService {
@Resource
private CollectionMapper collectionMapper;
    @Override
    public List<Room> findLikeRoomByUserId(int id) {
        return collectionMapper.findLikeRoomByUserId(id);
    }
}
